<!DOCTYPE html>
<html lang="en" >
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>活动工单看板</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>

<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="css/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>

<link href="plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<link href="plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<link rel="stylesheet" type="text/css" href="plugins/select2/select2.css"/>
<link rel="stylesheet" type="text/css" href="plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css"/>

<!-- BEGIN THEME STYLES -->
<link href="css/global/components.css" rel="stylesheet" type="text/css"/>
<link href="css/global/plugins.css" rel="stylesheet" type="text/css"/>
<link href="css/layout.css" rel="stylesheet" type="text/css"/>
<link id="style_color" href="css/themes/default.css" rel="stylesheet" type="text/css"/>
<link href="css/custom.css" rel="stylesheet" type="text/css"/>
<!--自定义样式  -->
<link href="css/ticket.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->

<link rel="shortcut icon" href="favicon.ico"/>
</head>

<body class="page-header-fixed page-quick-sidebar-over-content page-header-fixed-mobile page-footer-fixed1">
<!-- BEGIN HEADER -->
{% include "project/header" %}
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<div class="page-sidebar-wrapper">
		{% include "menu" %}
	</div>

	<div class="page-content-wrapper">
		
		<div class="page-content" style="min-height:497px">
			
			<div class="lenovo-item">
			
				<div class="row">
					<div class="col-md-12">
						<h3 class="lenovo-page-title">
						活动工单看板
						</h3>
						<form action="ticketSearch" name="search" method="get">
							<div class="ticket_id ">
							           项目编号：
							   <input id="ticket_id" class="input-medium search-query " type="text" name="id" value="{{id}}"/>
							</div>
							<div class="ticket_name ">
							            项目名称：
							   <input id="ticket_name" class="input-medium search-query " type="text" name="name" value="{{name}}"/>
							</div>
							<div class="ticket_status ">
							             项目状态：
							   <input id="ticket_status" class="input-medium search-query " type="text" name="status" value="{{status}}"/>
							    
							</div>
							<div class="search_button">
							    <button type="submit" class="btn" style="margin-left: 15px">搜索</button>
							</div>
						</form>
					</div>
				</div>		  
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box">
							<div class="portlet-body">
								<table class="table table-hover table-bordered" id="sample_editable_1" >
									<thead>
										<tr>
											<th style="width: 80px">状态</th>
											<th style="width: 230px">工单编号</th>
											<th style="width: 160px">开单时间</th>
											<th>关单时间</th>
											<th style="width: 160px">标题</th>
											<th>省</th>
											<th>市</th>
											<th>请求人姓名</th>
											<th>受理组</th>
											<th>受理人</th>
											<th>项目名称</th>
											<th>工单类型</th>
										</tr>
									</thead>
									<tbody>
										{% for item in ticketlist %}
											<tr>
												<td>
													<!-- 单据状态 -->
													{% if item .status == 0 %}
														待抢单
													{% elseif item .status == 1 %}
														待接单
													{% elseif item .status == 2 %}
														执行中
													{% elseif item .status == 3 %}
														完成
													{% elseif item .status == 4 %}
														已关单
													{% elseif item .status == 5 %}	
														场站
													{% elseif item .status == 6 %}
														已退单
													{% else %}
														状态错误
													{% endif %}
												</td>
												<!-- 单据编号 -->												
												<td><a class="center" href="ticketDetail?id={{ item.id }}">{{ item .id }}</a></td>
												<!-- 开单时间 -->
												<td>{{ item .starttime | date("yyyy-MM-dd HH:mm:ss") }}</td>
												<!-- 关单时间 -->
												<td></td>
												<!-- 标题 -->
												<td>{{ item.caption }}</td>	
												<!-- 省 -->
												<td></td>
												<!-- 市 -->
												<td></td>
												<!-- 请求人姓名 -->
												<td>{{ item.creater}}</td>
												<!-- 受理组 -->
												<td></td>	
												<!-- 受理人 -->
												<td>{{ item.assignee }}</td>
												<!-- 项目名称-->
												<td>{{ item.projectId }}</td>
												<!-- 工单类型 -->	
												<td></td>		
											</tr>
										{% endfor %}
									</tbody>
								</table>
							</div>
						</div>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- <a href="javascript:;" class="page-quick-sidebar-toggler"><i class="icon-close"></i></a>
    <div class="page-quick-sidebar-wrapper">
        <div class="page-quick-sidebar">            
           drgfdrgtdrp
        </div>
    </div> -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
{% include "project/footer" %}
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<script src="plugins/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<script type="text/javascript" src="plugins/select2/select2.min.js"></script>
<script type="text/javascript" src="plugins/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"></script>
<!-- END PAGE PLUGINS -->
<script src="js/global/metronic.js" type="text/javascript"></script>
<script src="js/layout.js" type="text/javascript"></script>
<script src="js/quick-sidebar.js" type="text/javascript"></script>
<script src="js/pages/table-editable.js"></script>

<script>
      jQuery(document).ready(function() {    
	        Metronic.init(); // init metronic core components
			Layout.init(); // init current layout
			QuickSidebar.init(); // init quick sidebar
			TableEditable.init();
			  
			if($("div.col-md-6").hasClass("col-sm-12")){
		        $("div.col-md-6").removeClass("col-sm-12").addClass("col-sm-6")
		    }
      });
   </script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>